package com.probox.common.entity.domain.product.vo;

import com.probox.common.core.utils.StringUtils;
import com.probox.common.core.utils.money.MoneyUtils;

import java.math.BigDecimal;

/**
 *  用于组件显示的商品信息vo
 */
public class ProductGroupListVo {
    private String productUid;
    private String productName;
    private String stockNumber;
    private BigDecimal retailPrice;
    private String carouselImg;

    private String isTuiJian;

    public String getProductUid() {
        return productUid;
    }

    public void setProductUid(String productUid) {
        this.productUid = productUid;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }


    public String getCarouselImgOne() {
        if(!StringUtils.isEmpty(carouselImg)){
            String[] split = carouselImg.split(",");
            return split[0];
        }
        return "";
    }

    public String getStockNumber() {
        return stockNumber;
    }

    public void setStockNumber(String stockNumber) {
        this.stockNumber = stockNumber;
    }

    public String getRetailPriceStr() {
        return MoneyUtils.changeF2B(this.retailPrice);
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }


    public String getCarouselImg() {
        return carouselImg;
    }

    public void setCarouselImg(String carouselImg) {
        this.carouselImg = carouselImg;
    }

    public String getIsTuiJian() {
        return isTuiJian;
    }

    public void setIsTuiJian(String isTuiJian) {
        this.isTuiJian = isTuiJian;
    }
}
